package com.lw.jpa.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Table(name = "role")
@Data
@Entity //告诉jpa这是与数据库映射的实体类
public class Role implements Serializable {
    private static final long serialVersionUID = 594829320797158219L;
    @Id
    private String id;
    /**
     * 角色名
     */
    private String name;
    /**
     * 说明
     */
    private String description;
    /**
     * 企业id
     */
    private String companyId;


//    private Set<User> users = new HashSet<User>(0);//角色与用户   多对多
//
//
//

//    private List<Permission> permissions = new ArrayList<>();//角色与模块  多对多
}